package com.muyun.data.modeler.sysadmin.api.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * 新增用户请求参数
 *
 * @author muyun12
 * @date 2020-12-20 13:32:30
 * @since 0.1.0
 */
@ApiModel
public class AddUserRequest {
    /**
     * 用户名
     */
    @NotBlank(message = "{username}{not.blank}")
    @ApiModelProperty(value = "用户名", required = true, notes = "该字段需要使用RSA加密传输", example = "5MzN+Oo=(RSA加密)")
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "{password}{not.blank}")
    @ApiModelProperty(value = "密码", required = true, notes = "该字段需要使用RSA加密传输", example = "YBmqTWs=(RSA加密)")
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
